<?php

/**
 * homepage actions.
 *
 * @package    sf_sandbox
 * @subpackage homepage
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
 */
class homepageActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {

//    $this->index = Zend_Search_Lucene::open("/home/indexes");
//
//    $this->doc = new Zend_Search_Lucene_Document();
//
//    $this->doc->addField(Zend_Search_Lucene_Field::Text('url', "jamil"));
//    $this->doc->addField(Zend_Search_Lucene_Field::Keyword('id', "32"));
//
//    $this->index->addDocument($this->doc);
//    $this->index->commit();
//    $this->index->optimize();
//
////
//    $this->index = Zend_Search_Lucene::open("/home/indexes");
//
//    $this->hits = $this->index->find('id:32');
//    $this->numHits = count($this->hits);
//    echo $this->numHits;

//    $this->product = new Product();
//    //$this->product = ProductPeer::retrieveByPk(32);
//    $criteria = new Criteria;
//    $criteria->add(product.id, "32");
//    $
    //$this->product->setCategory("1");
    //$this->product->setPrice('0.99');
    //$this->   product->save();


  }
}
